package Rangel.policeforce.extaction.clear;


import Rangel.common.world.tools.Util;
import rescuecore2.misc.geometry.Line2D;
import rescuecore2.misc.geometry.Point2D;
import rescuecore2.misc.geometry.Vector2D;
import rescuecore2.worldmodel.EntityID;

import java.util.ArrayList;
import java.util.List;


public class GuideLine extends Line2D {
    
    List<EntityID> areas = new ArrayList<>();

    public GuideLine(Point2D origin, Vector2D direction) {
        super(origin, direction);
    }

    public GuideLine(Point2D origin, Point2D end) {
        super(origin, end);
    }

    public void setAreas(List<EntityID> areas) {
        this.areas = areas;
    }

    public List<EntityID> getAreas() {
        return areas;
    }

    public double getLength() {
        return Util.lineLength(this);
    }

    public boolean isMinor() {
        return true;
    }
}
